﻿namespace NTLib.Pipe.Network.Exceptions
{
    using Pipe.Exceptions;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// Exception raised when the address pass throuth the pipe for connection is not correct.
    /// </summary>
    public sealed class BadNetworkAddressException : PipeException
    {
        #region CTOR

        /// <summary>
        /// Initializes a new instance of the <see cref="BadNetworkAddress"/> class.
        /// </summary>
        /// <param name="message">The error message that explains the reason for the exception.</param>
        /// <param name="innerException">The exception that is the cause of the current exception, or a null reference
        /// (Nothing in Visual Basic) if no inner exception is specified.</param>
        public BadNetworkAddressException(string message = null, Exception innerException = null) :
            base(message, innerException)
        {
        }

        #endregion
    }
}
